{% extends "layout.html" %}

{% block subtitle %}{{ user }}{% endblock %}

{% from "snippet/macro.html" import navigation, topic_columns, pagination %}

{% block nav %}
  {{ navigation('user') }}
{% endblock %}


{% block content %}
  <div class="panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">{{ _('Topics') }}</h3>
    </div>
    <div class="panel-columns">
      {{ topic_columns(paginator.items) }}
    </div>
  </div>
  {% if paginator.pages > 1 %}
    <div class="panel-footer">
      {{ pagination(paginator, url_for('topic.topics')) }}
    </div>
  {% endif %}
{% endblock %}
